package com.heima.model.comment.pojos;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document("tb_user_like")
public class Like {

    @Id
    private String id;

    /**
     * 文章ID
     */
    @Field("articleId")
    private long articleId;

    /**
     * 评论ID
     */
    @Field("commentId")
    private String commentId;

    /**
     * 点赞用户ID
     */
    @Field("userId")
    private long userId;
}
